e + f + g + h = s

 
Numbers to 30
Row and column totals are red
Diagonal total is green